package com.yt.order.provider.service.impl;

import com.yt.core.service.GenericServiceImpl;
import com.yt.order.api.interfaces.ProductInstitutionService;
import com.yt.order.api.model.Institution;
import com.yt.order.api.model.ProductInstitution;
import com.yt.order.provider.dao.ProductInstitutionDao;

import java.util.List;

/**
 * Created by liujunshi on 15-12-30.
 */
public class ProductInstitutionServiceImpl extends GenericServiceImpl<ProductInstitution, Long> implements ProductInstitutionService {
	private ProductInstitutionDao dao;

	public ProductInstitutionServiceImpl() {
	}

	public ProductInstitutionServiceImpl(ProductInstitutionDao dao) {
		super(dao);
		this.dao = dao;
	}

	public List<Institution> getInstitutionByProductId(Long productId){
		return dao.getInstitutionByProductId(productId);
	}

}
